﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VentaElectrodomesticos.GUI.Base;
using System.Windows.Forms;

namespace VentaElectrodomesticos.GUI.Helpers
{
    public static class GUIHelper
    {
        #region TextGetters
        public static String getText(TextBox tb)
        {
            return tb.Text;
        }
        #endregion

        public static DialogResult showFormSearch<T>(T frm) where T : IBaseListado, new()
        {            
            frm.IsSearchForm = true;
            return frm.ShowDialog();
        }        
    }
}
